//
// Created by henry on 2025/11/7.
//
#include "front.h"

//前端入口
int front_entry(){
    printf("欢迎进入前端系统!\n");
    front_menu();
}

//前端菜单
int front_menu(){
    while (1) {
        printf("1.用户登陆 2.用户注册 3.返回上级\n");
        int choose;
        scanf("%d",&choose);
        switch (choose) {
            case 1: {
                int rc = front_user_login();
                if(rc==0){

                }
                break;
            }
            case 2:
                front_user_regist();
                break;
            case 3:
                break;
            default:
                break;
        }
    }
}